#include "stdinc.h"
#include "cmds_main.h"

#include "CmdList.h"
#include "cvar.h"

bool cmd_vid_restart(int flags, CCmdList::Parser* parser)
{
	return false;
}

bool cmd_vid_sshot(int flags, CCmdList::Parser* parser)
{
	return false;
}

bool cmd_common(int flags, CCmdList::Parser* parser)
{
	switch (flags)
	{
	case CVAR_QUIT:
		cvar_set_bool(CVAR_QUIT, true);
		return true;
	}

	return false;
}

CCmdList::TCmdStruct cmd_list[] = {
	{"vid_restart",			cmd_vid_restart,	0,				"Restart video"},
	{"vid_screenshot",		cmd_vid_sshot,		0,				"Take a screen shot"},

	{"quit",				cmd_common,			CVAR_QUIT,		"Quits the application"},
};

void cmds_main_register()
{
	CMDLIST->AddCmdList(cmd_list);
}

void cmds_main_unregister()
{

}
